﻿using NineSeas.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NineSeas.ViewModels
{
    public class BookSearchViewModel
    {
        public int? AuthorId { get; set; }
        public string Category { get; set; }
        public string Expression { get; set; }
        public string OrderBy { get; set; }
        public string OrderDirection { get; set; }

        public BookTypeEnum? BookType { get; set; }

        public SearchOptions Options { get; private set; }

        public void SetOptions(SearchOptions options)
        {
            this.Options = options;
        }

        public class SearchOptions
        {
            public bool ForEdit { get; set; }
        }
    }    
}